package cn.wsalix.shop.service;

import java.util.Observer;

import cn.anlaser.service.SimpleService;
import cn.wsalix.biz.entity.Advertise;
import cn.wsalix.biz.entity.Category;
import cn.wsalix.shop.entity.Product;
import cn.wsalix.shop.entity.Shop;
import cn.wsalix.shop.form.ShopForm;
import cn.wsalix.shop.repository.ShopRepository;

public interface ShopService extends
		SimpleService<ShopForm, ShopRepository, Shop>, Observer {
	public Shop getNew();

	/**
	 * 创建店铺
	 */
	public Shop createShop();

	/**
	 * @param shopId
	 * 
	 * 用户申请发布店铺
	 */
	public void shopReady(Long shopId);

	/**
	 * @param shopId
	 * @return 客服审核，通过店铺发布请求
	 */
	public Shop pass(Long shopId);
	/**
	 * @param shopId
	 * @return 客服审核，通过店铺发布请求
	 */
	public Shop unPass(Long shopId);

	public void addProduct(Long shopId, Product product);

	public void delProduct(Long shopId, Long productId);

	public void addCat(Long shopId, Category category);

	public void delCat(Long shopId, Long catId);

	public void addAd(Long shopId, Advertise advertise);

	public void delAd(Long shopId, Long adId);
}
